﻿using DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ShopBack.Web.Controllers
{
    public class ShoppController : Controller
    {
        // GET: Shopp
        public ActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 购物车信息
        /// </summary>
        /// <param name="limit"></param>
        /// <param name="page"></param>
        /// <param name="Name"></param>
        /// <returns></returns>
        public ActionResult GetShopp(int limit, int page, string Name)
        {
            var total = 0;
            var list = ShoppingService.GetShoppMsg(limit, page, Name, out total).ToList();
            return Json(new { code = 0, msg = "", data = list, count = total }, JsonRequestBehavior.AllowGet);
        }

    }
}